const path = require("path");
let webpack = require("webpack");

const vendors = [
  'vue',
  'jquery',

];

module.exports = {
  output: {
    path: path.join(__dirname, "dist"), 
    filename: '[name].[chunkhash].js',
    library: '[name].[chunkhash]',
  },
  entry: {
    vendor: vendors,
  },
  plugins: [
    new webpack.DllPlugin({
      path: 'manifest.json',
      name: '[name].[chunkhash]',
      context: __dirname,
    }),
  ],
};